acm: Fix bogus domain_rcu_lock() invocations to rcu_unlock_domain().
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Fri, 2 Mar 2007 14:42:25 +0000 (14:42 +0000)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Fri, 2 Mar 2007 14:42:25 +0000 (14:42 +0000)
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
xen/include/acm/acm_hooks.h

index 857d4b7f5edde591cb987006a9f385b874db2668..2ac8a4ab448ed7bc6d4f952bfde2b0d243192742 100644 (file)
@@ -247,12 +247,12 @@ static inline int acm_pre_domctl(struct xen_domctl *op, void **ssid)
             if (*ssid == NULL) {
                 printk("%s: Warning. Destroying domain without ssid pointer.\n", 
                        __func__);
-                domain_rcu_lock(d);
+                rcu_unlock_domain(d);
                 return -EACCES;
             }
             d->ssid = NULL; /* make sure it's not used any more */
              /* no policy-specific hook */
-            domain_rcu_lock(d);
+            rcu_unlock_domain(d);
             ret = 0;
         }
         break;